package cn.tedu.project.oa.asset.mapper;

import cn.tedu.project.oa.asset.pojo.dto.AssetQuery;
import cn.tedu.project.oa.asset.pojo.dto.AssetSaveParam;
import cn.tedu.project.oa.asset.pojo.entity.Asset;
import cn.tedu.project.oa.asset.pojo.vo.AssetVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AssetMapper {

    List<AssetVO> selectAsset(AssetQuery assetQuery);

    void saveAsset(Asset asset);

    void updateAsset(Asset asset);

    void deleteById(Long id);

    void updateAssetByAssetCode(AssetSaveParam assetSaveParam);

    void deleteByAssetCode(String code);

    int count();

    int selectCount(AssetQuery assetQuery);
}
